package com.shell.scheduler.executor.chainbill;

import com.shell.bee.base.utils.DateUtil;
import com.shell.scheduler.Executor;
import com.winchain.feign.BillDctOverdueFeign;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class BillDctOverdueJobExecutor implements Executor {
	private static final long serialVersionUID = -6452094645965943764L;
	protected final Log logger = LogFactory.getLog(getClass());
	@Autowired
	private BillDctOverdueFeign billDctOverdueFeign;

	public void execute(Map<String, String> context) {
		this.logger.info(getClass().getName() + " is executing...");
		String workDate = DateUtil.getSystemDate();
		this.billDctOverdueFeign.executeOverdueDcts(workDate);
		this.logger.debug(getClass().getName() + " is execut successful...");
	}
}
